<?php
$menu = $variables[NULL]['#content'];
if($library_menu){
  $menu = $library_menu;
}
?>
<aside class="g-col g-col-1 b-aside-left">
  <div class="navside navaside">
    <div class="mod mod-nav-side">
      <nav>
        <ul class="sub">
          <?php foreach ($menu as $item) {
            if ($item['#title']) { ?>
              <li><a href="<?= $item['#href'] ? url($item['#href']) : '#' ?>" class="<?= '/'.request_path() == url($item['#href']) ? 'b active' : 'b-secondary' ?>"><?= $item['#title'] ?></a></li>
            <?php }
          } ?>
        </ul>
      </nav>
    </div>
  </div>
</aside>
